import React from 'react'

export default function TabbarItem (props) {
  return (
    <div className="tabbar-item" onClick={props.onPress}>
      {
        props.selected ? props.selectedIcon : props.icon
      }
      <span
        style={props.selected ? { color: props.params.tintcolor } : { color: props.params.unselectedtintcolor }}
      >
        {props.title}
      </span>
    </div>
  )
}
